#include <QtGui/QApplication>
#include <QTextCodec>
#include "mainwindow.h"
#include <QDir>

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);

	QTextCodec::setCodecForCStrings(QTextCodec::codecForName("utf8"));
	QTextCodec::setCodecForLocale(QTextCodec::codecForName("gb18030"));
	QTextCodec::setCodecForTr(QTextCodec::codecForName("gb18030"));

	QDir dir(QDir::home());
	if(!dir.exists(dir.absoluteFilePath(".radioget")))
		dir.mkdir(dir.absoluteFilePath(".radioget"));

	MainWindow w;
	w.show();
	return a.exec();
}
